package com.honglu.backend.common.quartz;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.honglu.backend.utils.TaskUtils;

/**
 * 
 * 计划任务执行工厂类(有状态)
 * @Description: 若一个方法一次执行不完下次轮转时则等待改方法执行完后才执行下一次操作
 * @author zhangze
 */
@DisallowConcurrentExecution
public class QuartzJobFactoryDisallowConcurrentExecution implements Job {
	
	public void execute(JobExecutionContext context) throws JobExecutionException {
//		ScheduleJob scheduleJob = (ScheduleJob) context.getMergedJobDataMap().get("scheduleJob");
//		TaskUtils.invokMethod(scheduleJob);

	}
}